﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ValueObjectClassView.aspx.cs" Inherits="TrafficArchives.ValueObjects.ValueObjectClassView" %>
<%@ Register TagPrefix="custom" TagName="Pager" Src="~/Controls/Pager.ascx" %>

<%--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
--%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/Page.css" rel="stylesheet" type="text/css" />
    <link href="../css/GamerGridView.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="2" bgcolor="#acd1eb"
        style="font-size: 12px;">
        <tr>
            <td valign="top" bgcolor="#FFFFFF">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr style="background: url(../images/bt_bg.gif)">
                                    <td width="12">
                                        <img src="../images/bt_left.gif" width="12" height="28">
                                    </td>
                                    <td width="42" align="center">
                                        <img src="../images/bt_title.gif">
                                    </td>
                                    <td style="font-size: 12px;">
                                        <span class="style3">您当前的位置：</span>值对象分类
                                    </td>
                                    <td width="51" id="sy">
                                        <a href="../Reports/ArchivesOverview.aspx">首页</a>
                                    </td>
                                    <td width="12">
                                        <img src="../images/bt_right.gif" width="12" height="28">
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" valign="top">
                            <!--详细信息begin-->
                            <asp:UpdatePanel ID="UpdatePanelMain" UpdateMode="Conditional" runat="server">
                                <ContentTemplate>
                                    <div style="width: 95%;border: 0px solid red;">
                                        <div style="float: right;padding-bottom: 5;padding-top: 5">
                                        <input type="button"  value="新增" class="button" onclick="javascript:window.navigate('AddValueObjectClass.aspx');" />
                                        </div>
                                    </div>
                                    <table id="TableHeader" runat="server" width="95%" border="0" cellpadding="0" cellspacing="1"
                                        bgcolor="#66a9ec" style="font-size: 12px;">
                                        <tr>
                                            <td height="25" align="center" bgcolor="#17346e" style="background: url(../images/contentbg2.gif)">
                                                分类编码
                                            </td>
                                            <td width="20%" align="center" bgcolor="#17346e" style="background: url(../images/contentbg2.gif)">
                                                分类名称
                                            </td>
                                            <td width="20%" align="center" bgcolor="#17346e" style="background: url(../images/contentbg2.gif)">
                                                说明
                                            </td>
                                            <td width="18%" align="center" bgcolor="#17346e" style="background: url(../images/contentbg2.gif)">
                                                操作
                                            </td>
                                        </tr>
                                    </table>
                                    <asp:GridView ID="GridViewMain" runat="server" Width="95%" AllowSorting="True" 
                                     OnRowCommand="GridViewMainRowCommand" AutoGenerateColumns="False" CssClass="GridViewStyle"
                                        DataKeyNames="VALUEOBJECTCLASS_ID" GridLines="None">
                                        <Columns>
                                            <asp:BoundField HeaderText="分类编码" DataField="CODE"></asp:BoundField>
                                            <asp:BoundField HeaderText="分类名称" DataField="NAME" />
                                             <asp:BoundField HeaderText="说明" DataField="REMARK" />
                                            <asp:TemplateField HeaderText="操作" >
                                                <HeaderStyle Width="200px"></HeaderStyle>
                                                <ItemTemplate>
                                                    <div id="DivModify" class="linkButton" runat="server">
                                                    <asp:LinkButton ID="BtnModify"  CommandArgument='<%#Eval("VALUEOBJECTCLASS_ID") %>' Text="编 辑" CommandName="Edit" CssClass="edit" runat="server" />
                                                    </div>
                                                    <div ID="DivDel" class="linkButton" runat="server">
                                                    <asp:LinkButton ID="BtnDel"  CommandArgument='<%#Eval("VALUEOBJECTCLASS_ID") %>' Text="删 除" OnClientClick="javascript:if (confirm('确定要删除吗？')){return true;}else{return false;}"
                                                        CommandName="Del" CssClass="edit" runat="server" />
                                                    </div>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                        <FooterStyle CssClass="FooterStyle" />
                                        <RowStyle CssClass="RowStyle" />
                                        <EmptyDataRowStyle CssClass="EmptyRowStyle" />
                                        <SelectedRowStyle CssClass="SelectedRowStyle" />
                                        <HeaderStyle CssClass="HeaderStyle" />
                                        <EditRowStyle CssClass="EditRowStyle" />
                                        <AlternatingRowStyle CssClass="AltRowStyle" />
                                    </asp:GridView>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                            <!--详细信息over-->
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
